package com.tcd.explore.mapper;

import com.tcd.explore.pojo.HumanInjuryInfo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;

/**
 * <p>
 * 人伤信息详情表 Mapper 接口
 * </p>
 *
 * @author Jarle
 * @since 2021-05-25
 */
public interface HumanInjuryInfoMapper extends BaseMapper<HumanInjuryInfo> {
    @Select("select * from human_injury_info where claim_main_id=#{claimMainid} and loss_status=1 ")
    public List<HumanInjuryInfo> humansum(String claimMainid);

    @Update("update human_injury_info set loss_status=#{lossstatus} where claim_main_id=#{claimmainid}")
    public boolean update(@Param("claimmainid") String claimmainid, @Param("lossstatus") String lossstatus);

}
